package ui.fragment;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.ListView;

import com.example.localvideo.R;

import ui.activity.MainActivity;
import utils.LogUtils;

public class myDialog extends Dialog {
    private Context context;
    private String TAG="myDialog:";


    //    style引用style样式
        public myDialog(Context context, int width, int height, View layout, int style) {

            super(context, style);

            setContentView(layout);
            Window window = getWindow();
            WindowManager.LayoutParams params = window.getAttributes();
            params.gravity = Gravity.CENTER;
            window.setAttributes(params);

        }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

}
